package com.netty.tcp.ew.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.netty.tcp.ew.mapper.ControlCommandLogSystemMapper;
import com.netty.tcp.ew.domain.ControlCommandLogSystem;
import com.netty.tcp.ew.service.IControlCommandLogSystemService;

/**
 * 系统执行日志Service业务层处理
 * 
 * @author Mr.wu
 * @date 2023-11-09
 */
@Service
public class ControlCommandLogSystemServiceImpl implements IControlCommandLogSystemService 
{
    @Autowired
    private ControlCommandLogSystemMapper controlCommandLogSystemMapper;

    /**
     * 查询系统执行日志
     * 
     * @param commandId 系统执行日志主键
     * @return 系统执行日志
     */
    @Override
    public ControlCommandLogSystem selectControlCommandLogSystemByCommandId(Integer commandId)
    {
        return controlCommandLogSystemMapper.selectControlCommandLogSystemByCommandId(commandId);
    }

    /**
     * 查询系统执行日志列表
     * 
     * @param controlCommandLogSystem 系统执行日志
     * @return 系统执行日志
     */
    @Override
    public List<ControlCommandLogSystem> selectControlCommandLogSystemList(ControlCommandLogSystem controlCommandLogSystem)
    {
        return controlCommandLogSystemMapper.selectControlCommandLogSystemList(controlCommandLogSystem);
    }

    /**
     * 新增系统执行日志
     * 
     * @param controlCommandLogSystem 系统执行日志
     * @return 结果
     */
    @Override
    public int insertControlCommandLogSystem(ControlCommandLogSystem controlCommandLogSystem)
    {
        return controlCommandLogSystemMapper.insertControlCommandLogSystem(controlCommandLogSystem);
    }

    /**
     * 修改系统执行日志
     * 
     * @param controlCommandLogSystem 系统执行日志
     * @return 结果
     */
    @Override
    public int updateControlCommandLogSystem(ControlCommandLogSystem controlCommandLogSystem)
    {
        return controlCommandLogSystemMapper.updateControlCommandLogSystem(controlCommandLogSystem);
    }

    /**
     * 批量删除系统执行日志
     * 
     * @param commandIds 需要删除的系统执行日志主键
     * @return 结果
     */
    @Override
    public int deleteControlCommandLogSystemByCommandIds(Integer[] commandIds)
    {
        return controlCommandLogSystemMapper.deleteControlCommandLogSystemByCommandIds(commandIds);
    }

    /**
     * 删除系统执行日志信息
     * 
     * @param commandId 系统执行日志主键
     * @return 结果
     */
    @Override
    public int deleteControlCommandLogSystemByCommandId(Integer commandId)
    {
        return controlCommandLogSystemMapper.deleteControlCommandLogSystemByCommandId(commandId);
    }
}
